package ru.pb.game.network.engine.client.packets.receivable;

import ru.pb.game.network.engine.client.packets.FromClientToGameServerPacket;
import ru.pb.game.network.engine.client.packets.sendable.opcode_1447_ACK;
import ru.pb.game.objects.model.clan.Clan;
import ru.pb.game.objects.model.players.Player;

/**
 * Запрос проверки клана(не существует ли такой)
 * 
 * @author DarkSkeleton
 * @version 1.00
 */
public class opcode_1447_REQ extends FromClientToGameServerPacket
{
	private String clan_name;
	public opcode_1447_REQ() 
	{
	}

	@Override
	public void readImpl()
	{
		readH();
		int len = readC();
		clan_name = readS(len);
		_log.info("Clan name: " + clan_name);
	}

	@Override
	public void runImpl()
	{
		Player p = getPlayer();
		p.sendPacket(new opcode_1447_ACK());
	}
}
